// DialogFlatTab.cpp : implementation file
//

#include "stdafx.h"
#include "map863.h"
#include "DialogFlatTab.h"


// CDialogFlatTab dialog

IMPLEMENT_DYNAMIC(CDialogFlatTab, CDialogBar)

CDialogFlatTab::CDialogFlatTab( )
{

}

CDialogFlatTab::~CDialogFlatTab()
{
}

void CDialogFlatTab::DoDataExchange(CDataExchange* pDX)
{
	CDialogBar::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CDialogFlatTab, CDialogBar)
	ON_MESSAGE(WM_INITDIALOG, OnInitDialog)
	ON_UPDATE_COMMAND_UI(IDC_BUTTON1, OnUpdateButton)
	ON_BN_CLICKED(IDC_BUTTON1, &CDialogFlatTab::OnBnClickedButton1)
END_MESSAGE_MAP()


// CDialogFlatTab message handlers

LONG CDialogFlatTab::OnInitDialog ( UINT wParam, LONG lParam)
{

            LONG bRet = (LONG) HandleInitDialog(wParam, lParam);
            if (!UpdateData(FALSE))
            {
               TRACE0("Warning: UpdateData failed during dialog init.\n");
            }

				((CEdit *)GetDlgItem(IDC_EDIT1))->SetWindowTextW(_T("hello dialogbar"));
            return bRet;
}

void CDialogFlatTab::OnUpdateButton(CCmdUI * pCmdUI)

{
    pCmdUI -> Enable(TRUE);
}

void CDialogFlatTab::OnBnClickedButton1()
{
	// TODO: Add your control notification handler code here
	MessageBox(_T("button1"));
}
